import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';

export const columns: BasicColumn[] = [
    {
    title: '容器名称',
    dataIndex: 'conName'
   },
   {
    title: 'labelName',
    dataIndex: 'labelName'
   },
   {
    title: 'labelBak',
    dataIndex: 'labelBak'
   },
   {
    title: '容器宽度',
    dataIndex: 'conWidth'
   },
   {
    title: '容器类型',
    dataIndex: 'conType'
   },
   {
    title: '页面id',
    dataIndex: 'pageId'
   },
   {
    title: '是否锁定',
    dataIndex: 'isLock'
   },
   {
    title: '容器字体大小',
    dataIndex: 'fontSize'
   },
   {
    title: '容器x轴名字',
    dataIndex: 'xName'
   },
   {
    title: '容器y轴名字',
    dataIndex: 'yName'
   },
   {
    title: '创建容器时间',
    dataIndex: 'createTiime'
   },
   {
    title: '删除容器时间',
    dataIndex: 'deleteTime'
   },
   {
    title: '是否删除标志',
    dataIndex: 'delFlag'
   },
   {
    title: '创建者',
    dataIndex: 'creator'
   },
   {
    title: '更新人',
    dataIndex: 'updater'
   },
   {
    title: '容器长度',
    dataIndex: 'conHeight'
   },
   {
    title: '容器保存的ids表id',
    dataIndex: 'xmlIdSet'
   },
   {
    title: '播放时间单位 ',
    dataIndex: 'cacheSet'
   },
   {
    title: '是否订阅',
    dataIndex: 'subFlag'
   },
   {
    title: '容器类型ip或存储下行',
    dataIndex: 'downloadType'
   },
   {
    title: '容器频率',
    dataIndex: 'grabf'
   },
   {
    title: '容器频率',
    dataIndex: 'frequency'
   },
   {
    title: 'cacheSetBigint',
    dataIndex: 'cacheSetBigint'
   },
   {
    title: 'autoSet',
    dataIndex: 'autoSet'
   },
   {
    title: 'posterizeTime',
    dataIndex: 'posterizeTime'
   },
   {
    title: 'conOrder',
    dataIndex: 'conOrder'
   },
   {
    title: 'fullview',
    dataIndex: 'fullview'
   },
   {
    title: 'miniview',
    dataIndex: 'miniview'
   },
];

export const searchFormSchema: FormSchema[] = [
 {
    label: '容器名称',
    field: 'conName',
    component: 'Input'
  },
 {
    label: 'labelName',
    field: 'labelName',
    component: 'Input'
  },
];

export const formSchema: FormSchema[] = [
  // TODO 主键隐藏字段，目前写死为ID
  {label: '', field: 'id', component: 'Input', show: false},
  {
    label: '容器名称',
    field: 'conName',
    component: 'Input',
  },
  {
    label: 'labelName',
    field: 'labelName',
    component: 'Input',
  },
  {
    label: 'labelBak',
    field: 'labelBak',
    component: 'Input',
  },
  {
    label: '容器宽度',
    field: 'conWidth',
    component: 'Input',
  },
  {
    label: '容器类型',
    field: 'conType',
    component: 'Input',
  },
  {
    label: '页面id',
    field: 'pageId',
    component: 'Input',
  },
  {
    label: '是否锁定',
    field: 'isLock',
    component: 'Input',
  },
  {
    label: '容器字体大小',
    field: 'fontSize',
    component: 'Input',
  },
  {
    label: '容器x轴名字',
    field: 'xName',
    component: 'Input',
  },
  {
    label: '容器y轴名字',
    field: 'yName',
    component: 'Input',
  },
  {
    label: '创建容器时间',
    field: 'createTiime',
    component: 'DatePicker',
    componentProps: {
      showTime: true,
      valueFormat: 'YYYY-MM-DD hh:mm:ss',
    },
  },
  {
    label: '删除容器时间',
    field: 'deleteTime',
    component: 'DatePicker',
    componentProps: {
      showTime: true,
      valueFormat: 'YYYY-MM-DD hh:mm:ss',
    },
  },
  {
    label: '是否删除标志',
    field: 'delFlag',
    component: 'Input',
  },
  {
    label: '创建者',
    field: 'creator',
    component: 'Input',
  },
  {
    label: '更新人',
    field: 'updater',
    component: 'Input',
  },
  {
    label: '容器长度',
    field: 'conHeight',
    component: 'Input',
  },
  {
    label: '容器保存的ids表id',
    field: 'xmlIdSet',
    component: 'Input',
  },
  {
    label: '播放时间单位 ',
    field: 'cacheSet',
    component: 'Input',
  },
  {
    label: '是否订阅',
    field: 'subFlag',
    component: 'Input',
  },
  {
    label: '容器类型ip或存储下行',
    field: 'downloadType',
    component: 'Input',
  },
  {
    label: '容器频率',
    field: 'grabf',
    component: 'Input',
  },
  {
    label: '容器频率',
    field: 'frequency',
    component: 'Input',
  },
  {
    label: 'cacheSetBigint',
    field: 'cacheSetBigint',
    component: 'Input',
  },
  {
    label: 'autoSet',
    field: 'autoSet',
    component: 'Input',
  },
  {
    label: 'posterizeTime',
    field: 'posterizeTime',
    component: 'Input',
  },
  {
    label: 'conOrder',
    field: 'conOrder',
    component: 'Input',
  },
  {
    label: 'fullview',
    field: 'fullview',
    component: 'Input',
  },
  {
    label: 'miniview',
    field: 'miniview',
    component: 'Input',
  },
];
